package com.woniu.dao;

import com.woniu.entity.Client;
import com.woniu.entity.CustomFeed;
import com.woniu.entity.LoanInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper

public interface CustomFeedDao {
    List<CustomFeed> findAllCustomFeed(CustomFeed csutomFeed );

    CustomFeed findFeedById(Integer feedId);



    Integer addNewFeedS1ForLoanInfo(LoanInfo loanInfo);

    List<String> findProduction(@Param("channelName") String ChannelName );

    List<String> findChannel();

    Integer addNewFeedS1ForClientInfo(CustomFeed customFeed);

    String getLastestOrderNum();

    Integer getApplicantNum(@Param("citizenIdentity") String citizenIdentity);

    Integer getChannelId(@Param("channelName") String channelName);

    Integer getProductionId(@Param("productionName") String productionName);

    Integer updateLoanInfo(CustomFeed customFeed);

    Integer getMaxIdForClient();

    Long getInitialLoanNum();

    String getProductionTypeById(Integer productionId);

    Integer getMaxIdForLoan();

    String getApplicantStatus(Integer i);

    List<String> findApplicantStatus();

    List<String> findOrigin();

    String getPaymentStatus( Integer paymentStatus);

    List<String> findPrincipal();



    Integer updateClientInfo(CustomFeed customFeed);

    Integer getClientIdById(Integer id);

    Integer findPrincipalByName(CustomFeed customFeed);

    List<Client> findAllClient();

    Boolean saveUserInfo(@Param("clientId") Integer clientId,@Param("jsonStr") String jsonStr);

    Integer getLoanIdByClientId(@Param("clientId") Integer clientId);
}
